class CateEntity {


//	{
//	"Success": 1,
//	"ErrorCode": 0,
//	"ErrorMsg": null,
//	"CallInfo": {
//	"categoryList": [{
//	"category_id": "14",
//	"category_name": "低温奶",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/8",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}, {
//	"category_id": "7",
//	"category_name": "果味奶",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/2",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}, {
//	"category_id": "1",
//	"category_name": "酸奶",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/1",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}, {
//	"category_id": "12",
//	"category_name": "pay商品",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/0",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}, {
//	"category_id": "10",
//	"category_name": "现制烘培",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/0",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}, {
//	"category_id": "5",
//	"category_name": "纯牛奶",
//	"category_sort": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/0",
//	"icon": "http:\/\/aweb.oss-cn-hangzhou.aliyuncs.com\/"
//	}],
//	"gradeList": [{
//	"category_id": "2",
//	"category_name": "益生菌",
//	"category_sort": "0",
//	"parent_id": "1"
//	}, {
//	"category_id": "3",
//	"category_name": "炭烧",
//	"category_sort": "0",
//	"parent_id": "1"
//	}, {
//	"category_id": "4",
//	"category_name": "低温",
//	"category_sort": "0",
//	"parent_id": "1"
//	}]
//	}
//	}




	CateCallinfo callInfo;
	dynamic errorMsg;
	int errorCode;
	int success;

	CateEntity({this.callInfo, this.errorMsg, this.errorCode, this.success});

	CateEntity.fromJson(Map<String, dynamic> json) {
		callInfo = json['CallInfo'] != null ? new CateCallinfo.fromJson(json['CallInfo']) : null;
		errorMsg = json['ErrorMsg'];
		errorCode = json['ErrorCode'];
		success = json['Success'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.callInfo != null) {
      data['CallInfo'] = this.callInfo.toJson();
    }
		data['ErrorMsg'] = this.errorMsg;
		data['ErrorCode'] = this.errorCode;
		data['Success'] = this.success;
		return data;
	}
}

class CateCallinfo {
	List<CateCallinfoGradelist> gradeList;
	List<CateCallinfoCategorylist> categoryList;

	CateCallinfo({this.gradeList, this.categoryList});

	CateCallinfo.fromJson(Map<String, dynamic> json) {
		if (json['gradeList'] != null) {
			gradeList = new List<CateCallinfoGradelist>();(json['gradeList'] as List).forEach((v) { gradeList.add(new CateCallinfoGradelist.fromJson(v)); });
		}
		if (json['categoryList'] != null) {
			categoryList = new List<CateCallinfoCategorylist>();(json['categoryList'] as List).forEach((v) { categoryList.add(new CateCallinfoCategorylist.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.gradeList != null) {
      data['gradeList'] =  this.gradeList.map((v) => v.toJson()).toList();
    }
		if (this.categoryList != null) {
      data['categoryList'] =  this.categoryList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class CateCallinfoGradelist {
	String categoryName;
	String categoryId;
	String parentId;
	String categorySort;

	CateCallinfoGradelist({this.categoryName, this.categoryId, this.parentId, this.categorySort});

	CateCallinfoGradelist.fromJson(Map<String, dynamic> json) {
		categoryName = json['category_name'];
		categoryId = json['category_id'];
		parentId = json['parent_id'];
		categorySort = json['category_sort'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['category_name'] = this.categoryName;
		data['category_id'] = this.categoryId;
		data['parent_id'] = this.parentId;
		data['category_sort'] = this.categorySort;
		return data;
	}
}

class CateCallinfoCategorylist {
	String categoryName;
	String categoryId;
	String icon;
	String categorySort;

	CateCallinfoCategorylist({this.categoryName, this.categoryId, this.icon, this.categorySort});

	CateCallinfoCategorylist.fromJson(Map<String, dynamic> json) {
		categoryName = json['category_name'];
		categoryId = json['category_id'];
		icon = json['icon'];
		categorySort = json['category_sort'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['category_name'] = this.categoryName;
		data['category_id'] = this.categoryId;
		data['icon'] = this.icon;
		data['category_sort'] = this.categorySort;
		return data;
	}
}
